from fastapi import Depends, HTTPException, status
from fastapi.security import OAuth2PasswordBearer
import os
from dotenv import load_dotenv

# 加载环境变量
load_dotenv()

# JWT配置
SECRET_KEY = os.getenv("SECRET_KEY", "your-secret-key-here-for-development-only")
ALGORITHM = os.getenv("ALGORITHM", "HS256")

# 认证依赖
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")


